import ajax from '@/utils/request'
import { concatUrl } from '@/utils'

// 用户赠品列表
export function userPolicyItem(data?, fields = { fields: '*' }) {
    return ajax({
        url: concatUrl('/v1/insurance/user-policy-item/index', fields),
        data
    })
}

// 申请返现&充值（订单完成后
export function insurancePolicyItem(data?, fields = { fields: '*' }) {
    return ajax({
        url: concatUrl('/v1/insurance/user-policy-item/apply-processing', fields),
        data,
        method: 'PUT'
    })
}
